package com.bdqn.ch05.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/indexa")
    public String index() {
        System.out.println("indexaaabbb...........");
        return "index";
        //return "redirect:index";
    }

    @RequestMapping("/baidu")
    public String baidu() {
        System.out.println("baidu...........");
        return "redirect:http://www.baidu.com";
    }
}
